package com.agimatec.locators.predicate.css;

import com.agimatec.locators.predicate.LocatorStringFactory;
import com.agimatec.locators.predicate.LocatorStringProducer;

/**
 * Created by IntelliJ IDEA.
 * User: sschuth
 * Date: 25.03.2010
 * Time: 12:26:46
 * To change this template use File | Settings | File Templates.
 */
public class CssFactory implements LocatorStringFactory {
    public LocatorStringProducer getIdPredicate(String id) {
        return new CssId(id);
    }

    public LocatorStringProducer getIndexPredicate(int index) {
        return new CssIndex(index);
    }

    public LocatorStringProducer getCssClassPredicate(String cssClass) {
        return new CssCssClass(cssClass);
    }

    public LocatorStringProducer getTypePredicate(String type) {
        return new CssType(type);
    }

    public LocatorStringProducer getStart() {
        return new CssStartOfLocator();
    }

    public LocatorStringProducer getDirectChildTag(String tagName){
        return new CssChildTag(tagName);
    }

    public LocatorStringProducer getTag(String tagName) {
        return new CssTag(tagName);
    }

}
